﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/util.js"></script>

<!-- <script type="text/javascript">
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
	});
	$.post("user!findCurrentUser.action",function(data){
		var user = eval("("+data+")");
		if(user==null){
			window.parent.frames.location.href="login.html"
		}
		$("#top_user_name").html(user.name);
		$("#uWaitCount").html(user.waitCount);
	});	
})	
</script> -->
<script type="text/javascript">
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
	});
	$.post("user!findModel.action",function(data){
		var json = eval("("+data+")");
		if(json.msg){
			return;
		}
		//leftmenu
		var html ="";
		for(var i = 0;i<json.length;i++){
			if(json[i].name=="添加杆塔"){
				html+="<li><a href='demo.html'  target='rightFrame'><img src='images/icon03.png' title='杆塔管理' /><h2>杆塔管理</h2></a></li>";
			}
			if(json[i].name=="添加路线"){
				html+="<li><a href='routeLine.html' target='rightFrame'><img src='images/icon02.png' title='路线管理' /><h2>路线管理</h2></a></li>";
			}
		}
		$(".nav").append(html);
	});
	
	$.post("user!findCurrentUser.action",function(data){
		
		var user = eval("("+data+")");
		if(user==null){
			window.parent.frames.location.href="login.html";
		}
		$("#top_user_name").html(user.name);
	 	/* $("#uWaitCount").html(user.waitCount);   */ 
	});	
	
});

$.post("wait!findList.action",{pageIndex:1,pageSize:999},function(data){
		var bean = eval("("+data+")");
		$("#uWaitCount").html(bean.rows.length);  
	});
	
</script>

</head>

<body style="background:url(images/topbg.gif) repeat-x;">

    <div class="topleft">
    <a href="main.html" target="_parent"><img src="images/logo.png" title="系统首页" /></a>
    </div>
        
    <ul class="nav">
   <li><a href="wait.html" target="rightFrame" class="selected"><img src="images/icon01.png" title="待办列表" /><h2>待办列表</h2></a></li>
   <!--  <li><a href="imgtable.html" target="rightFrame"><img src="images/icon02.png" title="模型管理" /><h2>模型管理</h2></a></li>
    <li><a href="demo.html"  target="rightFrame"><img src="images/icon03.png" title="塔杆管理" /><h2>塔杆管理</h2></a></li>
    <li><a href="tools.html"  target="rightFrame"><img src="images/icon04.png" title="常用工具" /><h2>常用工具</h2></a></li>
    <li><a href="computer.html" target="rightFrame"><img src="images/icon05.png" title="文件管理" /><h2>文件管理</h2></a></li>
    <li><a href="tab.html"  target="rightFrame"><img src="images/icon06.png" title="系统设置" /><h2>系统设置</h2></a></li>  -->
    </ul>
            
    <div class="topright">    
    <ul>
    <li><span><img src="images/help.png" title="帮助"  class="helpimg"/></span><a href="#">帮助</a></li>
    <li><a href="#">关于</a></li>
    <li><a href="javascript:void(0)"  onclick="user_loginout()">退出</a></li>
    </ul>
     
    <div class="user">
    <a id="top_user_name" href="index.html" target="rightFrame">admin</a>
    <i style="cursor: pointer" onclick="parent.rightFrame.location.href='wait.html'">消息</i>
    <b style="cursor: pointer" id="uWaitCount" onclick="parent.rightFrame.location.href='wait.html'"></b>
    </div>    
    
    </div>

</body>
</html>
